home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 January / Macworld (2000-01).dmg / 1999 Games Hall of Fame / Unreal Tournament Demo.sea / Unreal Tournament Demo / System / UTBrowser.u / UTBrowserServerList_UTBrowserServerGrid_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-10-20  |  2.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 6d 29 63 6c 61 73 73 20 |........|m)class |
|00000010| 55 54 42 72 6f 77 73 65 | 72 53 65 72 76 65 72 47 |UTBrowse|rServerG|
|00000020| 72 69 64 20 65 78 70 61 | 6e 64 73 20 55 42 72 6f |rid expa|nds UBro|
|00000030| 77 73 65 72 53 65 72 76 | 65 72 47 72 69 64 3b 0d |wserServ|erGrid;.|
|00000040| 0a 0d 0a 76 61 72 20 55 | 57 69 6e 64 6f 77 47 72 |...var U|WindowGr|
|00000050| 69 64 43 6f 6c 75 6d 6e | 20 6e 67 53 74 61 74 73 |idColumn| ngStats|
|00000060| 3b 0d 0a 76 61 72 20 6c | 6f 63 61 6c 69 7a 65 64 |;..var l|ocalized|
|00000070| 20 73 74 72 69 6e 67 20 | 6e 67 53 74 61 74 73 4e | string |ngStatsN|
|00000080| 61 6d 65 3b 0d 0a 76 61 | 72 20 6c 6f 63 61 6c 69 |ame;..va|r locali|
|00000090| 7a 65 64 20 73 74 72 69 | 6e 67 20 45 6e 61 62 6c |zed stri|ng Enabl|
|000000a0| 65 64 54 65 78 74 3b 0d | 0a 76 61 72 20 55 42 72 |edText;.|.var UBr|
|000000b0| 6f 77 73 65 72 53 65 72 | 76 65 72 4c 69 73 74 20 |owserSer|verList |
|000000c0| 43 6f 6e 6e 65 63 74 54 | 6f 53 65 72 76 65 72 3b |ConnectT|oServer;|
|000000d0| 0d 0a 76 61 72 20 62 6f | 6f 6c 20 62 57 61 69 74 |..var bo|ol bWait|
|000000e0| 69 6e 67 46 6f 72 4e 67 | 53 74 61 74 73 3b 0d 0a |ingForNg|Stats;..|
|000000f0| 0d 0a 76 61 72 20 55 57 | 69 6e 64 6f 77 4d 65 73 |..var UW|indowMes|
|00000100| 73 61 67 65 42 6f 78 20 | 41 73 6b 4e 67 53 74 61 |sageBox |AskNgSta|
|00000110| 74 73 3b 0d 0a 76 61 72 | 20 6c 6f 63 61 6c 69 7a |ts;..var| localiz|
|00000120| 65 64 20 73 74 72 69 6e | 67 20 41 73 6b 4e 67 53 |ed strin|g AskNgS|
|00000130| 74 61 74 73 54 69 74 6c | 65 3b 0d 0a 76 61 72 20 |tatsTitl|e;..var |
|00000140| 6c 6f 63 61 6c 69 7a 65 | 64 20 73 74 72 69 6e 67 |localize|d string|
|00000150| 20 41 73 6b 4e 67 53 74 | 61 74 73 54 65 78 74 3b | AskNgSt|atsText;|
|00000160| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 43 72 65 |....func|tion Cre|
|00000170| 61 74 65 43 6f 6c 75 6d | 6e 73 28 29 0d 0a 7b 0d |ateColum|ns()..{.|
|00000180| 0a 09 53 75 70 65 72 2e | 43 72 65 61 74 65 43 6f |..Super.|CreateCo|
|00000190| 6c 75 6d 6e 73 28 29 3b | 0d 0a 0d 0a 09 6e 67 53 |lumns();|.....ngS|
|000001a0| 74 61 74 73 09 3d 20 41 | 64 64 43 6f 6c 75 6d 6e |tats.= A|ddColumn|
|000001b0| 28 6e 67 53 74 61 74 73 | 4e 61 6d 65 2c 20 38 30 |(ngStats|Name, 80|
|000001c0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 0d 0a 66 75 6e 63 74 |);..}...|...funct|
|000001d0| 69 6f 6e 20 44 72 61 77 | 43 65 6c 6c 28 43 61 6e |ion Draw|Cell(Can|
|000001e0| 76 61 73 20 43 2c 20 66 | 6c 6f 61 74 20 58 2c 20 |vas C, f|loat X, |
|000001f0| 66 6c 6f 61 74 20 59 2c | 20 55 57 69 6e 64 6f 77 |float Y,| UWindow|
|00000200| 47 72 69 64 43 6f 6c 75 | 6d 6e 20 43 6f 6c 75 6d |GridColu|mn Colum|
|00000210| 6e 2c 20 55 42 72 6f 77 | 73 65 72 53 65 72 76 65 |n, UBrow|serServe|
|00000220| 72 4c 69 73 74 20 4c 69 | 73 74 29 0d 0a 7b 0d 0a |rList Li|st)..{..|
|00000230| 09 73 77 69 74 63 68 28 | 43 6f 6c 75 6d 6e 29 0d |.switch(|Column).|
|00000240| 0a 09 7b 0d 0a 09 63 61 | 73 65 20 6e 67 53 74 61 |..{...ca|se ngSta|
|00000250| 74 73 3a 0d 0a 09 09 69 | 66 28 55 54 42 72 6f 77 |ts:....i|f(UTBrow|
|00000260| 73 65 72 53 65 72 76 65 | 72 4c 69 73 74 28 4c 69 |serServe|rList(Li|
|00000270| 73 74 29 2e 62 4e 47 57 | 6f 72 6c 64 53 74 61 74 |st).bNGW|orldStat|
|00000280| 73 29 0d 0a 09 09 09 43 | 6f 6c 75 6d 6e 2e 43 6c |s).....C|olumn.Cl|
|00000290| 69 70 54 65 78 74 28 20 | 43 2c 20 58 2c 20 59 2c |ipText( |C, X, Y,|
|000002a0| 20 45 6e 61 62 6c 65 64 | 54 65 78 74 20 29 3b 0d | Enabled|Text );.|
|000002b0| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 64 65 66 61 |...break|;...defa|
|000002c0| 75 6c 74 3a 0d 0a 09 09 | 53 75 70 65 72 2e 44 72 |ult:....|Super.Dr|
|000002d0| 61 77 43 65 6c 6c 28 43 | 2c 20 58 2c 20 59 2c 20 |awCell(C|, X, Y, |
|000002e0| 43 6f 6c 75 6d 6e 2c 20 | 4c 69 73 74 29 3b 0d 0a |Column, |List);..|
|000002f0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 7d 0d 0a 7d 0d |..break;|...}..}.|
|00000300| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 69 6e 74 20 |...funct|ion int |
|00000310| 43 6f 6d 70 61 72 65 28 | 55 42 72 6f 77 73 65 72 |Compare(|UBrowser|
|00000320| 53 65 72 76 65 72 4c 69 | 73 74 20 54 2c 20 55 42 |ServerLi|st T, UB|
|00000330| 72 6f 77 73 65 72 53 65 | 72 76 65 72 4c 69 73 74 |rowserSe|rverList|
|00000340| 20 42 29 0d 0a 7b 0d 0a | 09 73 77 69 74 63 68 28 | B)..{..|.switch(|
|00000350| 53 6f 72 74 42 79 43 6f | 6c 75 6d 6e 29 0d 0a 09 |SortByCo|lumn)...|
|00000360| 7b 0d 0a 09 63 61 73 65 | 20 6e 67 53 74 61 74 73 |{...case| ngStats|
|00000370| 3a 0d 0a 09 09 69 66 28 | 55 54 42 72 6f 77 73 65 |:....if(|UTBrowse|
|00000380| 72 53 65 72 76 65 72 4c | 69 73 74 28 54 29 2e 62 |rServerL|ist(T).b|
|00000390| 4e 47 57 6f 72 6c 64 53 | 74 61 74 73 20 3d 3d 20 |NGWorldS|tats == |
|000003a0| 55 54 42 72 6f 77 73 65 | 72 53 65 72 76 65 72 4c |UTBrowse|rServerL|
|000003b0| 69 73 74 28 42 29 2e 62 | 4e 47 57 6f 72 6c 64 53 |ist(B).b|NGWorldS|
|000003c0| 74 61 74 73 29 09 0d 0a | 09 09 09 72 65 74 75 72 |tats)...|...retur|
|000003d0| 6e 20 42 79 4e 61 6d 65 | 28 54 2c 20 42 29 3b 0d |n ByName|(T, B);.|
|000003e0| 0a 0d 0a 09 09 69 66 28 | 55 54 42 72 6f 77 73 65 |.....if(|UTBrowse|
|000003f0| 72 53 65 72 76 65 72 4c | 69 73 74 28 54 29 2e 62 |rServerL|ist(T).b|
|00000400| 4e 47 57 6f 72 6c 64 53 | 74 61 74 73 29 0d 0a 09 |NGWorldS|tats)...|
|00000410| 09 7b 0d 0a 09 09 09 69 | 66 28 62 53 6f 72 74 44 |.{.....i|f(bSortD|
|00000420| 65 73 63 65 6e 64 69 6e | 67 29 0d 0a 09 09 09 09 |escendin|g)......|
|00000430| 72 65 74 75 72 6e 20 31 | 3b 0d 0a 09 09 09 65 6c |return 1|;.....el|
|00000440| 73 65 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 20 2d |se......|return -|
|00000450| 31 3b 0d 0a 09 09 7d 0d | 0a 09 09 65 6c 73 65 0d |1;....}.|...else.|
|00000460| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 28 62 53 6f 72 |...{....|.if(bSor|
|00000470| 74 44 65 73 63 65 6e 64 | 69 6e 67 29 0d 0a 09 09 |tDescend|ing)....|
|00000480| 09 09 72 65 74 75 72 6e | 20 2d 31 3b 0d 0a 09 09 |..return| -1;....|
|00000490| 09 65 6c 73 65 0d 0a 09 | 09 09 09 72 65 74 75 72 |.else...|...retur|
|000004a0| 6e 20 31 3b 0d 0a 09 09 | 7d 0d 0a 0d 0a 09 09 62 |n 1;....|}......b|
|000004b0| 72 65 61 6b 3b 0d 0a 09 | 64 65 66 61 75 6c 74 3a |reak;...|default:|
|000004c0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 53 75 70 65 72 |....retu|rn Super|
|000004d0| 2e 43 6f 6d 70 61 72 65 | 28 54 2c 20 42 29 3b 0d |.Compare|(T, B);.|
|000004e0| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 7d 0d 0a 7d |...break|;...}..}|
|000004f0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4d 65 73 |....func|tion Mes|
|00000500| 73 61 67 65 42 6f 78 44 | 6f 6e 65 28 55 57 69 6e |sageBoxD|one(UWin|
|00000510| 64 6f 77 4d 65 73 73 61 | 67 65 42 6f 78 20 57 2c |dowMessa|geBox W,|
|00000520| 20 4d 65 73 73 61 67 65 | 42 6f 78 52 65 73 75 6c | Message|BoxResul|
|00000530| 74 20 52 65 73 75 6c 74 | 29 0d 0a 7b 0d 0a 09 69 |t Result|)..{...i|
|00000540| 66 28 57 20 3d 3d 20 41 | 73 6b 4e 67 53 74 61 74 |f(W == A|skNgStat|
|00000550| 73 29 0d 0a 09 7b 0d 0a | 09 09 41 73 6b 4e 67 53 |s)...{..|..AskNgS|
|00000560| 74 61 74 73 20 3d 20 4e | 6f 6e 65 3b 0d 0a 09 09 |tats = N|one;....|
|00000570| 69 66 28 52 65 73 75 6c | 74 20 3d 3d 20 4d 52 5f |if(Resul|t == MR_|
|00000580| 43 61 6e 63 65 6c 29 0d | 0a 09 09 09 72 65 74 75 |Cancel).|....retu|
|00000590| 72 6e 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 69 |rn;....e|lse....i|
|000005a0| 66 28 52 65 73 75 6c 74 | 20 3d 3d 20 4d 52 5f 59 |f(Result| == MR_Y|
|000005b0| 65 73 29 0d 0a 09 09 7b | 0d 0a 09 09 09 53 68 6f |es)....{|.....Sho|
|000005c0| 77 4d 6f 64 61 6c 28 52 | 6f 6f 74 2e 43 72 65 61 |wModal(R|oot.Crea|
|000005d0| 74 65 57 69 6e 64 6f 77 | 28 63 6c 61 73 73 3c 55 |teWindow|(class<U|
|000005e0| 57 69 6e 64 6f 77 57 69 | 6e 64 6f 77 3e 28 44 79 |WindowWi|ndow>(Dy|
|000005f0| 6e 61 6d 69 63 4c 6f 61 | 64 4f 62 6a 65 63 74 28 |namicLoa|dObject(|
|00000600| 22 55 54 4d 65 6e 75 2e | 6e 67 57 6f 72 6c 64 53 |"UTMenu.|ngWorldS|
|00000610| 65 63 72 65 74 57 69 6e | 64 6f 77 22 2c 20 63 6c |ecretWin|dow", cl|
|00000620| 61 73 73 27 43 6c 61 73 | 73 27 29 29 2c 20 31 30 |ass'Clas|s')), 10|
|00000630| 30 2c 20 31 30 30 2c 20 | 32 30 30 2c 20 32 30 30 |0, 100, |200, 200|
|00000640| 2c 20 52 6f 6f 74 2c 20 | 54 72 75 65 29 29 3b 0d |, Root, |True));.|
|00000650| 0a 09 09 09 62 57 61 69 | 74 69 6e 67 46 6f 72 4e |....bWai|tingForN|
|00000660| 67 53 74 61 74 73 20 3d | 20 54 72 75 65 3b 0d 0a |gStats =| True;..|
|00000670| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 7b |..}....e|lse....{|
|00000680| 0d 0a 09 09 09 47 65 74 | 50 6c 61 79 65 72 4f 77 |.....Get|PlayerOw|
|00000690| 6e 65 72 28 29 2e 6e 67 | 53 65 63 72 65 74 53 65 |ner().ng|SecretSe|
|000006a0| 74 20 3d 20 54 72 75 65 | 3b 0d 0a 09 09 09 47 65 |t = True|;.....Ge|
|000006b0| 74 50 6c 61 79 65 72 4f | 77 6e 65 72 28 29 2e 53 |tPlayerO|wner().S|
|000006c0| 61 76 65 43 6f 6e 66 69 | 67 28 29 3b 0d 0a 09 09 |aveConfi|g();....|
|000006d0| 09 52 65 61 6c 6c 79 4a | 6f 69 6e 53 65 72 76 65 |.ReallyJ|oinServe|
|000006e0| 72 28 43 6f 6e 6e 65 63 | 74 54 6f 53 65 72 76 65 |r(Connec|tToServe|
|000006f0| 72 29 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 7d 0d |r);....}|...}..}.|
|00000700| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 4a 6f 69 6e |...funct|ion Join|
|00000710| 53 65 72 76 65 72 28 55 | 42 72 6f 77 73 65 72 53 |Server(U|BrowserS|
|00000720| 65 72 76 65 72 4c 69 73 | 74 20 53 65 72 76 65 72 |erverLis|t Server|
|00000730| 29 0d 0a 7b 0d 0a 09 69 | 66 28 53 65 72 76 65 72 |)..{...i|f(Server|
|00000740| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 53 65 72 76 | != None| && Serv|
|00000750| 65 72 2e 47 61 6d 65 50 | 6f 72 74 20 21 3d 20 30 |er.GameP|ort != 0|
|00000760| 29 20 0d 0a 09 7b 0d 0a | 09 09 69 66 28 21 47 65 |) ...{..|..if(!Ge|
|00000770| 74 50 6c 61 79 65 72 4f | 77 6e 65 72 28 29 2e 6e |tPlayerO|wner().n|
|00000780| 67 53 65 63 72 65 74 53 | 65 74 20 26 26 20 55 54 |gSecretS|et && UT|
|00000790| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 4c 69 73 |BrowserS|erverLis|
|000007a0| 74 28 53 65 72 76 65 72 | 29 2e 62 4e 47 57 6f 72 |t(Server|).bNGWor|
|000007b0| 6c 64 53 74 61 74 73 29 | 0d 0a 09 09 7b 0d 0a 09 |ldStats)|....{...|
|000007c0| 09 09 43 6f 6e 6e 65 63 | 74 54 6f 53 65 72 76 65 |..Connec|tToServe|
|000007d0| 72 20 3d 20 53 65 72 76 | 65 72 3b 0d 0a 09 09 09 |r = Serv|er;.....|
|000007e0| 41 73 6b 4e 67 53 74 61 | 74 73 20 3d 20 4d 65 73 |AskNgSta|ts = Mes|
|000007f0| 73 61 67 65 42 6f 78 28 | 41 73 6b 4e 67 53 74 61 |sageBox(|AskNgSta|
|00000800| 74 73 54 69 74 6c 65 2c | 20 41 73 6b 4e 67 53 74 |tsTitle,| AskNgSt|
|00000810| 61 74 73 54 65 78 74 2c | 20 4d 42 5f 59 65 73 4e |atsText,| MB_YesN|
|00000820| 6f 43 61 6e 63 65 6c 2c | 20 4d 52 5f 59 65 73 29 |oCancel,| MR_Yes)|
|00000830| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00000840| 09 09 09 52 65 61 6c 6c | 79 4a 6f 69 6e 53 65 72 |...Reall|yJoinSer|
|00000850| 76 65 72 28 53 65 72 76 | 65 72 29 3b 0d 0a 09 7d |ver(Serv|er);...}|
|00000860| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000870| 42 65 66 6f 72 65 50 61 | 69 6e 74 28 43 61 6e 76 |BeforePa|int(Canv|
|00000880| 61 73 20 43 2c 20 66 6c | 6f 61 74 20 58 2c 20 66 |as C, fl|oat X, f|
|00000890| 6c 6f 61 74 20 59 29 0d | 0a 7b 0d 0a 09 53 75 70 |loat Y).|.{...Sup|
|000008a0| 65 72 2e 42 65 66 6f 72 | 65 50 61 69 6e 74 28 43 |er.Befor|ePaint(C|
|000008b0| 2c 20 58 2c 20 59 29 3b | 0d 0a 09 69 66 28 62 57 |, X, Y);|...if(bW|
|000008c0| 61 69 74 69 6e 67 46 6f | 72 4e 67 53 74 61 74 73 |aitingFo|rNgStats|
|000008d0| 20 26 26 20 21 57 61 69 | 74 4d 6f 64 61 6c 28 29 | && !Wai|tModal()|
|000008e0| 29 0d 0a 09 7b 0d 0a 09 | 09 52 65 61 6c 6c 79 4a |)...{...|.ReallyJ|
|000008f0| 6f 69 6e 53 65 72 76 65 | 72 28 43 6f 6e 6e 65 63 |oinServe|r(Connec|
|00000900| 74 54 6f 53 65 72 76 65 | 72 29 3b 0d 0a 09 09 62 |tToServe|r);....b|
|00000910| 57 61 69 74 69 6e 67 46 | 6f 72 4e 67 53 74 61 74 |WaitingF|orNgStat|
|00000920| 73 20 3d 20 46 61 6c 73 | 65 3b 0d 0a 09 7d 0d 0a |s = Fals|e;...}..|
|00000930| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 52 65 |}....fun|ction Re|
|00000940| 61 6c 6c 79 4a 6f 69 6e | 53 65 72 76 65 72 28 55 |allyJoin|Server(U|
|00000950| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 4c 69 73 |BrowserS|erverLis|
|00000960| 74 20 53 65 72 76 65 72 | 29 0d 0a 7b 0d 0a 09 47 |t Server|)..{...G|
|00000970| 65 74 50 6c 61 79 65 72 | 4f 77 6e 65 72 28 29 2e |etPlayer|Owner().|
|00000980| 43 6c 69 65 6e 74 54 72 | 61 76 65 6c 28 22 75 6e |ClientTr|avel("un|
|00000990| 72 65 61 6c 3a 2f 2f 22 | 24 53 65 72 76 65 72 2e |real://"|$Server.|
|000009a0| 49 50 24 22 3a 22 24 53 | 65 72 76 65 72 2e 47 61 |IP$":"$S|erver.Ga|
|000009b0| 6d 65 50 6f 72 74 24 55 | 42 72 6f 77 73 65 72 53 |mePort$U|BrowserS|
|000009c0| 65 72 76 65 72 4c 69 73 | 74 57 69 6e 64 6f 77 28 |erverLis|tWindow(|
|000009d0| 47 65 74 50 61 72 65 6e | 74 28 63 6c 61 73 73 27 |GetParen|t(class'|
|000009e0| 55 42 72 6f 77 73 65 72 | 53 65 72 76 65 72 4c 69 |UBrowser|ServerLi|
|000009f0| 73 74 57 69 6e 64 6f 77 | 27 29 29 2e 55 52 4c 41 |stWindow|')).URLA|
|00000a00| 70 70 65 6e 64 2c 20 54 | 52 41 56 45 4c 5f 41 62 |ppend, T|RAVEL_Ab|
|00000a10| 73 6f 6c 75 74 65 2c 20 | 66 61 6c 73 65 29 3b 0d |solute, |false);.|
|00000a20| 0a 09 47 65 74 50 61 72 | 65 6e 74 28 63 6c 61 73 |..GetPar|ent(clas|
|00000a30| 73 27 55 57 69 6e 64 6f | 77 46 72 61 6d 65 64 57 |s'UWindo|wFramedW|
|00000a40| 69 6e 64 6f 77 27 29 2e | 43 6c 6f 73 65 28 29 3b |indow').|Close();|
|00000a50| 0d 0a 09 52 6f 6f 74 2e | 43 6f 6e 73 6f 6c 65 2e |...Root.|Console.|
|00000a60| 43 6c 6f 73 65 55 57 69 | 6e 64 6f 77 28 29 3b 0d |CloseUWi|ndow();.|
|00000a70| 0a 7d 0d 0a 0d 0a 00 | |.}..... | |
+--------+-------------------------+-------------------------+--------+--------+